package com.hou.hpsj_springboot.controller;

import com.hou.hpsj_springboot.bean.Fans;
import com.hou.hpsj_springboot.service.IFansService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/fans")
public class FansController {

    @Resource
    private IFansService fansService;


    @GetMapping()
    public List<Fans> selectAllFans() {
        return fansService.selectAllFans();
    }
}
